//---------------------------------------------------------------------------- // File: OS_Global.h // Type: OS Def // Author: Ken Anderson // Date: 2/26/3 // OS dependant: NA // Note: This manages the Operating System definitions, API, and entrypoint functions. // It is vital that your program has defined one of the below operating systems! // 1) WindowsOS -- Windows32 Operating System. // 2) LinuxOS -- Linux Operating System //---------------------------------------------------------------------------- #ifndef _OSGLOBAL_ #define _OSGLOBAL_ //The opearting system is defined in this file by the user. #include "OS_DEFINED.h" //Fail to compile if C++ is not being used. #if !defined(__cplusplus) #error C++ compiler required. #endif //Use the Windows definitions & API interface. #ifdef WindowsOS #include "IX_Window.h" //Use windows definitions #define Win32 //Use windows Entry Point extern IX_Window* pOSxAPI; //Use windows API interface. #else #ifdef LinuxOS #define LinX //Report an error if no OS has been defined. #else #error No Operating System has been defined see OS_Global.h. #endif #endif #endif